package com.smp.bitmapgridtest;

import android.graphics.drawable.Drawable;
import android.widget.ImageView;

public class BitmapWorkerHelper {
	
	public static BitmapWorkerTask getBitmapWorkerTask(ImageView aTargetViw) {
		if(aTargetViw != null) {
			final Drawable drawable = aTargetViw.getDrawable();
			if(drawable instanceof AsyncDrawable) {
				final AsyncDrawable asyncDrawable = (AsyncDrawable) drawable;
				return asyncDrawable.getBitmapWorkerTask();
			}
		}
		return null;
	}
}
